package com.jchy.renderit.displayable;
 
import com.jchy.renderit.core.MultiPrimitiveObject;
import com.jchy.renderit.core.Point;

public class OctoPoints extends MultiPrimitiveObject
{
    OctoPoints()
    {
        double octy=Math.sqrt(2);
        Point a=new Point( 0.0,-octy, 0.0);
        Point b=new Point( 1.0,  0.0, 1.0);
        Point c=new Point( 1.0,  0.0,-1.0);
        Point d=new Point(-1.0,  0.0,-1.0);
        Point e=new Point(-1.0,  0.0, 1.0);
        Point f=new Point( 0.0, octy, 0.0);
        Sphere sa=new Sphere();
        Sphere sb=new Sphere();
        Sphere sc=new Sphere();
        Sphere sd=new Sphere();
        Sphere se=new Sphere();
        Sphere sf=new Sphere();
        sa.scale(0.1,0.1,0.1);
        sb.scale(0.1,0.1,0.1);
        sc.scale(0.1,0.1,0.1);
        sd.scale(0.1,0.1,0.1);
        se.scale(0.1,0.1,0.1);
        sf.scale(0.1,0.1,0.1);
        sa.translate(a.x,a.y,a.z);
        sb.translate(b.x,b.y,b.z);
        sc.translate(c.x,c.y,c.z);
        sd.translate(d.x,d.y,d.z);
        se.translate(e.x,e.y,e.z);
        sf.translate(f.x,f.y,f.z);
        multi.addElement(sa);
        multi.addElement(sb);
        multi.addElement(sc);
        multi.addElement(sd);
        multi.addElement(se);
        multi.addElement(sf);
    }
}
